package com.mes.pojo.device;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @Author 张喆
 * @Company
 * @Description
 * @Time 2024/10/17 18:33
 */
@HeadRowHeight(25)
@ContentRowHeight(20)
@ColumnWidth(100)
public class Device {
    @ExcelProperty(value = "设备编号",index = 0)
    private String deviceId;
    @ExcelProperty(value = "设备名称",index = 1)
    private String deviceName;
    @ExcelProperty(value = "设备品牌",index = 2)
    private String deviceBrand;
    @ExcelProperty(value = "设备状态",index = 4)
    private Integer deviceStatus;
    @ExcelProperty(value = "设备型号",index = 3)
    private String deviceType;
    @ExcelProperty(value = "设备车间",index = 5)
    private String deviceWorkShopId;
    @ExcelIgnore
    private String deviceTypeId;
    @ExcelProperty(value = "创建时间",index = 6)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deviceCreateTime;
    @ExcelProperty(value = "修改时间",index = 7)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deviceModifyTime;

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceBrand() {
        return deviceBrand;
    }

    public void setDeviceBrand(String deviceBrand) {
        this.deviceBrand = deviceBrand;
    }

    public Integer getDeviceStatus() {
        return deviceStatus;
    }

    public void setDeviceStatus(Integer deviceStatus) {
        this.deviceStatus = deviceStatus;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getDeviceWorkShopId() {
        return deviceWorkShopId;
    }

    public void setDeviceWorkShopId(String deviceWorkShopId) {
        this.deviceWorkShopId = deviceWorkShopId;
    }

    public String getDeviceTypeId() {
        return deviceTypeId;
    }

    public void setDeviceTypeId(String deviceTypeId) {
        this.deviceTypeId = deviceTypeId;
    }

    public Date getDeviceCreateTime() {
        return deviceCreateTime;
    }

    public void setDeviceCreateTime(Date deviceCreateTime) {
        this.deviceCreateTime = deviceCreateTime;
    }

    public Date getDeviceModifyTime() {
        return deviceModifyTime;
    }

    public void setDeviceModifyTime(Date deviceModifyTime) {
        this.deviceModifyTime = deviceModifyTime;
    }

}
